import request from "@/utils/request";

/**
 * 查询商家建模列表
 * @param props
 * @returns {*}
 */
export const businessPage = props => {
  return request({
    url: "/mall/tenant/business/shopModel/apply/operationsPage",
    method: "post",
    data: props
  });
};

/**
 * 保存建模
 */
export const addModel = props => {
  return request({
    url: "/mall/tenant/business/shopModel/apply/model",
    method: "post",
    data: props
  });
};
/**
 * 修改建模
 */
export const editModel = props => {
  return request({
    url: "/mall/tenant/business/shopModel/apply/updateModel",
    method: "post",
    data: props
  });
};

/**
 * 编辑sku建模时，查询建模详情
 */
export const getSelectModelList = props => {
  return request({
    url: "/mall/tenant/business/shopModel/apply/modelDetails",
    method: "post",
    data: props
  });
};
